package com.kvest.view_pager_test;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import com.kvest.view_pager_test.adapter.MyFragmentPagerAdapter;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 17.03.13
 * Time: 19:42
 * To change this template use File | Settings | File Templates.
 */
public class FragmentsActivity extends FragmentActivity{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.frames_layout);

        ((ViewPager)findViewById(R.id.content_container)).setAdapter(new MyFragmentPagerAdapter(getSupportFragmentManager()));
    }
}
